import request from '@/utils/request'

// 查询考勤汇总列表
export function listAttendance_new(query) {
  return request({
    url: '/basic/attendance_new/list',
    method: 'get',
    params: query
  })
}

// 查询考勤汇总详细
export function getAttendance_new(id) {
  return request({
    url: '/basic/attendance_new/' + id,
    method: 'get'
  })
}

// 新增考勤汇总
export function addAttendance_new(data) {
  return request({
    url: '/basic/attendance_new',
    method: 'post',
    data: data
  })
}

// 修改考勤汇总
export function updateAttendance_new(data) {
  return request({
    url: '/basic/attendance_new',
    method: 'put',
    data: data
  })
}

// 删除考勤汇总
export function delAttendance_new(id) {
  return request({
    url: '/basic/attendance_new/' + id,
    method: 'delete'
  })
}


// 修改考勤汇总
export function updateAttendance_newSH(data) {
  return request({
    url: '/basic/attendance_new/SH',
    method: 'put',
    data: data
  })
}